#ifndef READDISCRETECOILREGISTERCMD_H
#define READDISCRETECOILREGISTERCMD_H

#include <QObject>
#include "BaseModbusCmd.h"
#include "Protocol/ModbusProtocol.h"
#include "DataType/ModbusControlStruct.h"

class ReadDiscreteCoilRegisterCmd : public BaseModbusCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = ModbusProtocol::ReadDiscreteCoilRegister};

    Q_INVOKABLE explicit ReadDiscreteCoilRegisterCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

};

#endif // READDISCRETECOILREGISTERCMD_H
